package com.sushi.service;

import com.sushi.enums.Type;
import com.sushi.repository.entity.TagRelationEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sushi.response.ResponseBO;
import com.sushi.response.ResponsePageBO;
import com.sushi.response.TagRelationResp;
import com.sushi.request.TagRelationReq;
import com.sushi.request.TagRelationPageReq;

import java.util.List;

/**
 * 标签关系 服务类
 * @date 2023-05-02
 * @time 17:16:38
 * @author Administrator
 */
public interface TagRelationService extends IService<TagRelationEntity> {

    

    /**
     * 新增
     */
    public ResponseBO<TagRelationResp> add(TagRelationReq req);

    /**
     * 逻辑删除
     */
    public ResponseBO<TagRelationResp> logicRemove(TagRelationReq req);

    /**
     * 更新
     */
    public ResponseBO<TagRelationResp> updateByField(TagRelationReq req);

    /**
     * 列表
     */
    public ResponsePageBO<TagRelationResp> listByCondition(TagRelationPageReq req);

    /**
     * 详情
     */
    public ResponseBO<TagRelationResp> detail(TagRelationReq req);

    List<String> getTagIdListByObj(String id, Type.Tag type);

    ;

}